<?php
declare (strict_types = 1);

namespace app\model;

use think\Model;
use think\model\concern\SoftDelete;

/**
 * @property int $deletetime
 * @property int $id
 * @property int $num 数量
 * @property int $spec_id 规格
 * @property int $super_id 商品
 * @property int $user_id 用户
 * @property string $createtime
 * @property-read \app\model\Super $super
 * @property-read \app\model\SuperSpec $spec
 * @method static \think\db\Query onlyTrashed()
 * @method static \think\db\Query withTrashed()
 * @mixin \think\Model
 */
class SuperShopcar extends Model
{
	use SoftDelete;
	//
	protected $createTime = 'createtime';
	protected $updateTime = 'updatetime';
	protected $deleteTime = 'deletetime';
	
	function super()
	{
		return $this->belongsTo(Super::class,'super_id');
	}
	
	function spec()
	{
		return $this->belongsTo(SuperSpec::class,'spec_id');
	}
	
}
